
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>十六、单调栈 · 计算机笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="海拉尔的三角">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-pro-fixed/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-ancre-navigation/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-insert-logo-link-website/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-auto-scroll-table/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-katex-pro/katex.min.css">
                
            
                
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-sectionx/sectionx.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-terminull-light/terminull.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="toollib_withNum.html" />
    
    
    <link rel="prev" href="backtracking_withNum.html" />
    

    
        <link rel="shortcut icon" href="image/ico.png" type="image/x-icon">
    
    
    
    
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="image/ico.png">
    
    
        
    
    
        
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://github.com/spite-triangle" target="_blank" class="custom-link">Github</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../cpp.html">
            
                <a href="../cpp.html">
            
                    
                    C/C++
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="foundation_withNum.html">
            
                <a href="foundation_withNum.html">
            
                    
                    一、基础概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="keyword_withNum.html">
            
                <a href="keyword_withNum.html">
            
                    
                    二、关键字
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="point_reference_withNum.html">
            
                <a href="point_reference_withNum.html">
            
                    
                    三、指针与引用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="oop_withNum.html">
            
                <a href="oop_withNum.html">
            
                    
                    四、面向对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="memory_withNum.html">
            
                <a href="memory_withNum.html">
            
                    
                    五、内存
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="process_withNum.html">
            
                <a href="process_withNum.html">
            
                    
                    六、进程与线程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="locks_withNum.html">
            
                <a href="locks_withNum.html">
            
                    
                    七、锁
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="stl_withNum.html">
            
                <a href="stl_withNum.html">
            
                    
                    八、STL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.9" data-path="dataStruction_withNum.html">
            
                <a href="dataStruction_withNum.html">
            
                    
                    九、数据结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.10" data-path="array_list_withNum.html">
            
                <a href="array_list_withNum.html">
            
                    
                    十、数组链表操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.11" data-path="find_withNum.html">
            
                <a href="find_withNum.html">
            
                    
                    十一、目标查找
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.12" data-path="tree_withNum.html">
            
                <a href="tree_withNum.html">
            
                    
                    十二、树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.13" data-path="binaryTree_withNum.html">
            
                <a href="binaryTree_withNum.html">
            
                    
                    十三、二叉树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.14" data-path="dynamicProgram_withNum.html">
            
                <a href="dynamicProgram_withNum.html">
            
                    
                    十四、动态规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.15" data-path="backtracking_withNum.html">
            
                <a href="backtracking_withNum.html">
            
                    
                    十五、回溯算法
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.1.16" data-path="monotoneStack_withNum.html">
            
                <a href="monotoneStack_withNum.html">
            
                    
                    十六、单调栈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.17" data-path="toollib_withNum.html">
            
                <a href="toollib_withNum.html">
            
                    
                    附录 工具库
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../../MySQL/mysql.html">
            
                <a href="../../MySQL/mysql.html">
            
                    
                    MySQL
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="../../MySQL/chapter/introduction_withNum.html">
            
                <a href="../../MySQL/chapter/introduction_withNum.html">
            
                    
                    一、简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.2" data-path="../../MySQL/chapter/foundation_withNum.html">
            
                <a href="../../MySQL/chapter/foundation_withNum.html">
            
                    
                    二、控制台操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.3" data-path="../../MySQL/chapter/operatorDB_withNum.html">
            
                <a href="../../MySQL/chapter/operatorDB_withNum.html">
            
                    
                    三、数据库、表操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.4" data-path="../../MySQL/chapter/operatorData_withNum.html">
            
                <a href="../../MySQL/chapter/operatorData_withNum.html">
            
                    
                    四、数据操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.5" data-path="../../MySQL/chapter/transaction_withNum.html">
            
                <a href="../../MySQL/chapter/transaction_withNum.html">
            
                    
                    五、事务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.6" data-path="../../MySQL/chapter/index_withNum.html">
            
                <a href="../../MySQL/chapter/index_withNum.html">
            
                    
                    六、索引
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.7" data-path="../../MySQL/chapter/authority_withNum.html">
            
                <a href="../../MySQL/chapter/authority_withNum.html">
            
                    
                    七、权限管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.8" data-path="../../MySQL/chapter/backup_withNum.html">
            
                <a href="../../MySQL/chapter/backup_withNum.html">
            
                    
                    八、备份
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../../linux/linux.html">
            
                <a href="../../linux/linux.html">
            
                    
                    Linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1.1" data-path="../../linux/chapter/foundation_withNum.html">
            
                <a href="../../linux/chapter/foundation_withNum.html">
            
                    
                    一、原理知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.2" data-path="../../linux/chapter/command_withNum.html">
            
                <a href="../../linux/chapter/command_withNum.html">
            
                    
                    二、指令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../../tcp_udp/tcp_upd.html">
            
                <a href="../../tcp_udp/tcp_upd.html">
            
                    
                    网络
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.1.1" data-path="../../tcp_udp/chapter/foundation_withNum.html">
            
                <a href="../../tcp_udp/chapter/foundation_withNum.html">
            
                    
                    一、网络通讯基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.1.2" data-path="../../tcp_udp/chapter/tcp_udp_withNum.html">
            
                <a href="../../tcp_udp/chapter/tcp_udp_withNum.html">
            
                    
                    二、tcp/udp
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >十六、单调栈</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><span class="title-icon "></span><a href="#&#x5355;&#x8C03;&#x6808;"><b></b>&#x5355;&#x8C03;&#x6808;</a></li><li><span class="title-icon "></span><a href="#1-&#x5355;&#x8C03;&#x6808;&#x4F5C;&#x7528;"><b></b>1. &#x5355;&#x8C03;&#x6808;&#x4F5C;&#x7528;</a></li><li><span class="title-icon "></span><a href="#2-next-greater-number"><b></b>2. Next Greater Number</a></li><li><span class="title-icon "></span><a href="#3-&#x300C;&#x5FAA;&#x73AF;&#x300D;&#x7684;next-greater-number"><b></b>3. &#x300C;&#x5FAA;&#x73AF;&#x300D;&#x7684;Next Greater Number</a></li><li><span class="title-icon "></span><a href="#4-&#x4E0E;-next-greater-number&#x4E4B;&#x95F4;&#x7684;&#x8DDD;&#x79BB;"><b></b>4. &#x4E0E; Next Greater Number&#x4E4B;&#x95F4;&#x7684;&#x8DDD;&#x79BB;</a></li><li><span class="title-icon "></span><a href="#5-&#x65E0;&#x5E8F;&#x6570;&#x7EC4;&#xFF0C;&#x53BB;&#x9664;&#x91CD;&#x590D;&#x503C;"><b></b>5. &#x65E0;&#x5E8F;&#x6570;&#x7EC4;&#xFF0C;&#x53BB;&#x9664;&#x91CD;&#x590D;&#x503C;</a></li></ul></div><a href="#&#x5355;&#x8C03;&#x6808;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 style="font-size:60px;text-align:center;" id="&#x5355;&#x8C03;&#x6808;"><a name="&#x5355;&#x8C03;&#x6808;" class="anchor-navigation-ex-anchor" href="#&#x5355;&#x8C03;&#x6808;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5355;&#x8C03;&#x6808;</h1>

<h1 id="1-&#x5355;&#x8C03;&#x6808;&#x4F5C;&#x7528;"><a name="1-&#x5355;&#x8C03;&#x6808;&#x4F5C;&#x7528;" class="anchor-navigation-ex-anchor" href="#1-&#x5355;&#x8C03;&#x6808;&#x4F5C;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x5355;&#x8C03;&#x6808;&#x4F5C;&#x7528;</h1>
<p><strong>&#x6839;&#x636E;&#x5F53;&#x524D;&#x5165;&#x6808;&#x7684;&#x503C;&#xFF0C;&#x6808;&#x5185;&#x90E8;&#x4F1A;&#x7EF4;&#x6301;&#x987A;&#x5E8F;&#xFF08;&#x9012;&#x589E;&#x6216;&#x9012;&#x51CF;&#xFF09;&#x3002;</strong></p>
<ul>
<li><code>while (!s.empty() &amp;&amp; s.top() &lt;= nums[i])</code>: <strong>&#x6BD4;<code>nums[i]</code>&#x5C0F;&#x7684;&#x90FD;&#x6EDA;&#x4E86;&#xFF0C;&#x73B0;&#x5728;<code>nums[i]</code>&#x6700;&#x5C0F;&#xFF0C;&#x6240;&#x4EE5;<code>s</code>&#x662F;&#x9012;&#x51CF;&#x7684;</strong></li>
<li><code>while (!s.empty() &amp;&amp; s.top() &gt;= nums[i])</code>: <strong>&#x6BD4;<code>nums[i]</code>&#x5927;&#x7684;&#x90FD;&#x6EDA;&#x4E86;&#xFF0C;&#x73B0;&#x5728;<code>nums[i]</code>&#x6700;&#x5927;&#xFF0C;&#x6240;&#x4EE5;<code>s</code>&#x662F;&#x9012;&#x589E;&#x7684;</strong></li>
</ul>
<pre class="language-"><code class="lang-cpp"><span class="token keyword">void</span> <span class="token function">monotonousStack</span><span class="token punctuation">(</span><span class="token keyword">int</span><span class="token operator">*</span> nums<span class="token punctuation">,</span><span class="token keyword">int</span> n<span class="token punctuation">)</span><span class="token punctuation">{</span>
        stack<span class="token operator">&lt;</span><span class="token keyword">int</span><span class="token operator">&gt;</span> s<span class="token punctuation">;</span>

        <span class="token comment">// &#x503C;&#x5165;&#x6808;</span>
        <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">int</span> i <span class="token operator">=</span> n<span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">;</span> i <span class="token operator">&gt;=</span> <span class="token number">0</span><span class="token punctuation">;</span> i<span class="token operator">--</span><span class="token punctuation">)</span><span class="token punctuation">{</span>

            <span class="token comment">// &#x786E;&#x4FDD;&#x5F53;&#x524D;&#x503C;&#x5728;&#x6808;&#x4E2D;&#x662F;&#x6700;&#x5C0F;&#x7684;</span>
            <span class="token keyword">while</span> <span class="token punctuation">(</span><span class="token operator">!</span>s<span class="token punctuation">.</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">&amp;&amp;</span> s<span class="token punctuation">.</span><span class="token function">top</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">&lt;=</span> nums<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">)</span>
            <span class="token punctuation">{</span>
                <span class="token comment">// &#x6808;&#x9876;&#x7684;&#x503C;&#x5C0F;&#x4E8E;&#x7B49;&#x4E8E;&#x5F53;&#x524D;&#x503C;&#xFF0C;&#x76F4;&#x63A5;&#x5F39;&#x51FA;</span>
                s<span class="token punctuation">.</span><span class="token function">pop</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>

            <span class="token comment">// &#x5F53;&#x524D;&#x7684; nums[i] &#x5165;&#x6808;</span>
            s<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>nums<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
</code></pre>
<h1 id="2-next-greater-number"><a name="2-next-greater-number" class="anchor-navigation-ex-anchor" href="#2-next-greater-number"><i class="fa fa-link" aria-hidden="true"></i></a>2. Next Greater Number</h1>
<p><a href="../../image/cpp/nextGreater.jpeg" data-lightbox="f4781908-5c93-4a1c-b2c6-7bde655a894b" data-title="next greater"><img src="../../image/cpp/nextGreater.jpeg" alt="next greater"></a></p>
<p><strong>&#x4E3B;&#x8981;&#x89E3;&#x51B3;&#x95EE;&#x9898; Next Greater Number: &#x5728;&#x5F53;&#x524D;&#x6570;&#x7EC4;&#x4E2D;&#xFF0C;&#x6BD4;&#x5F53;&#x524D;&#x6570;&#x66F4;&#x5927;&#x7684;&#x4E0B;&#x4E00;&#x4E2A;&#x6570;</strong></p>
<ul>
<li><code>for</code> &#x5FAA;&#x73AF;: <strong>&#x8981;&#x4ECE;&#x540E;&#x5F80;&#x524D;&#x626B;&#x63CF;&#x5143;&#x7D20;</strong>&#xFF0C;&#x56E0;&#x4E3A;&#x6211;&#x4EEC;&#x501F;&#x52A9;&#x7684;&#x662F;&#x6808;&#x7684;&#x7ED3;&#x6784;&#xFF0C;&#x5012;&#x7740;&#x5165;&#x6808;&#xFF0C;&#x5176;&#x5B9E;&#x662F;&#x6B63;&#x7740;&#x51FA;&#x6808;&#x3002;</li>
<li><code>while</code>&#x5FAA;&#x73AF;: &#x662F;&#x628A;&#x4E24;&#x4E2A;&#x201C;&#x9AD8;&#x4E2A;&#x201D;&#x5143;&#x7D20;&#x4E4B;&#x95F4;&#x7684;&#x5143;&#x7D20;&#x6392;&#x9664;</li>
</ul>
<pre class="language-"><code class="lang-cpp"><span class="token keyword">void</span> <span class="token function">nextGreater</span><span class="token punctuation">(</span><span class="token keyword">int</span><span class="token operator">*</span> nums<span class="token punctuation">,</span><span class="token keyword">int</span> n<span class="token punctuation">,</span><span class="token keyword">int</span><span class="token operator">*</span> out<span class="token punctuation">)</span><span class="token punctuation">{</span>
        stack<span class="token operator">&lt;</span><span class="token keyword">int</span><span class="token operator">&gt;</span> s<span class="token punctuation">;</span>
        <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">int</span> i <span class="token operator">=</span> n<span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">;</span> i <span class="token operator">&gt;=</span> <span class="token number">0</span><span class="token punctuation">;</span> i<span class="token operator">--</span><span class="token punctuation">)</span><span class="token punctuation">{</span>

            <span class="token keyword">while</span> <span class="token punctuation">(</span><span class="token operator">!</span>s<span class="token punctuation">.</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">&amp;&amp;</span> s<span class="token punctuation">.</span><span class="token function">top</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">&lt;=</span> nums<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">)</span>
            <span class="token punctuation">{</span>
                <span class="token comment">// &#x6808;&#x9876;&#x7684;&#x503C;&#x5C0F;&#x4E8E;&#x7B49;&#x4E8E;&#x5F53;&#x524D;&#x503C;&#xFF0C;&#x6EDA;&#x86CB;</span>
                s<span class="token punctuation">.</span><span class="token function">pop</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>

            <span class="token comment">// &#x6808;&#x7A7A;&#x7684;&#xFF1A;&#x6CA1;&#x627E;&#x5230;&#xFF1B;&#x4E0D;&#x4E3A;&#x7A7A;&#xFF1A;&#x6808;&#x9876;&#x5C31;&#x662F;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>s<span class="token punctuation">.</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
            <span class="token punctuation">{</span>
                out<span class="token punctuation">[</span>i<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span><span class="token keyword">else</span><span class="token punctuation">{</span>
                out<span class="token punctuation">[</span>i<span class="token punctuation">]</span> <span class="token operator">=</span> s<span class="token punctuation">.</span><span class="token function">top</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>

            <span class="token comment">// &#x5F53;&#x524D;&#x7684; nums[i] &#x5165;&#x6808;</span>
            s<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>nums<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
</code></pre>
<h1 id="3-&#x300C;&#x5FAA;&#x73AF;&#x300D;&#x7684;next-greater-number"><a name="3-&#x300C;&#x5FAA;&#x73AF;&#x300D;&#x7684;next-greater-number" class="anchor-navigation-ex-anchor" href="#3-&#x300C;&#x5FAA;&#x73AF;&#x300D;&#x7684;next-greater-number"><i class="fa fa-link" aria-hidden="true"></i></a>3. &#x300C;&#x5FAA;&#x73AF;&#x300D;&#x7684;Next Greater Number</h1>
<p>&#x5C06;&#x6570;&#x7EC4;&#x6269;&#x5C55;&#x4E00;&#x500D;&#xFF0C;&#x7136;&#x540E;&#x7528;&#x5355;&#x8C03;&#x6808;</p>
<h1 id="4-&#x4E0E;-next-greater-number&#x4E4B;&#x95F4;&#x7684;&#x8DDD;&#x79BB;"><a name="4-&#x4E0E;-next-greater-number&#x4E4B;&#x95F4;&#x7684;&#x8DDD;&#x79BB;" class="anchor-navigation-ex-anchor" href="#4-&#x4E0E;-next-greater-number&#x4E4B;&#x95F4;&#x7684;&#x8DDD;&#x79BB;"><i class="fa fa-link" aria-hidden="true"></i></a>4. &#x4E0E; Next Greater Number&#x4E4B;&#x95F4;&#x7684;&#x8DDD;&#x79BB;</h1>
<pre class="language-"><code class="lang-cpp"><span class="token keyword">void</span> <span class="token function">nextGreaterInterval</span><span class="token punctuation">(</span><span class="token keyword">int</span><span class="token operator">*</span> nums<span class="token punctuation">,</span><span class="token keyword">int</span> n<span class="token punctuation">,</span><span class="token keyword">int</span><span class="token operator">*</span> out<span class="token punctuation">)</span><span class="token punctuation">{</span>
        <span class="token comment">// &#x6808;&#x4E2D;&#x5B58;&#x653E;&#x7D22;&#x5F15;</span>
        stack<span class="token operator">&lt;</span><span class="token keyword">int</span><span class="token operator">&gt;</span> s<span class="token punctuation">;</span>
        <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">int</span> i <span class="token operator">=</span> n<span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">;</span> i <span class="token operator">&gt;=</span> <span class="token number">0</span><span class="token punctuation">;</span> i<span class="token operator">--</span><span class="token punctuation">)</span><span class="token punctuation">{</span>

            <span class="token keyword">while</span> <span class="token punctuation">(</span><span class="token operator">!</span>s<span class="token punctuation">.</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">&amp;&amp;</span> nums<span class="token punctuation">[</span>s<span class="token punctuation">.</span><span class="token function">top</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">]</span> <span class="token operator">&gt;=</span> nums<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">)</span>
            <span class="token punctuation">{</span>
                <span class="token comment">// &#x6808;&#x9876;&#x7684;&#x503C;&#x5C0F;&#x4E8E;&#x7B49;&#x4E8E;&#x5F53;&#x524D;&#x503C;&#xFF0C;&#x7D22;&#x5F15;&#x6EDA;&#x86CB;</span>
                s<span class="token punctuation">.</span><span class="token function">pop</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>

            <span class="token comment">// &#x6808;&#x7A7A;&#x7684;&#xFF1A;&#x6CA1;&#x627E;&#x5230;&#xFF1B;&#x4E0D;&#x4E3A;&#x7A7A;&#xFF1A;&#x6808;&#x9876;&#x5C31;&#x662F;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>s<span class="token punctuation">.</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
            <span class="token punctuation">{</span>
                out<span class="token punctuation">[</span>i<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span><span class="token keyword">else</span><span class="token punctuation">{</span>
                out<span class="token punctuation">[</span>i<span class="token punctuation">]</span> <span class="token operator">=</span> s<span class="token punctuation">.</span><span class="token function">top</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">-</span> i<span class="token punctuation">;</span>
            <span class="token punctuation">}</span>

            <span class="token comment">// &#x5F53;&#x524D;&#x7684; i &#x5165;&#x6808;</span>
            s<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>i<span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
</code></pre>
<h1 id="5-&#x65E0;&#x5E8F;&#x6570;&#x7EC4;&#xFF0C;&#x53BB;&#x9664;&#x91CD;&#x590D;&#x503C;"><a name="5-&#x65E0;&#x5E8F;&#x6570;&#x7EC4;&#xFF0C;&#x53BB;&#x9664;&#x91CD;&#x590D;&#x503C;" class="anchor-navigation-ex-anchor" href="#5-&#x65E0;&#x5E8F;&#x6570;&#x7EC4;&#xFF0C;&#x53BB;&#x9664;&#x91CD;&#x590D;&#x503C;"><i class="fa fa-link" aria-hidden="true"></i></a>5. &#x65E0;&#x5E8F;&#x6570;&#x7EC4;&#xFF0C;&#x53BB;&#x9664;&#x91CD;&#x590D;&#x503C;</h1>
<blockquote>
<ol>
<li>&#x8981;&#x53BB;&#x91CD;</li>
<li>&#x91CD;&#x5B57;&#x7B26;&#x4E32;&#x4E2D;&#x7684;&#x5B57;&#x7B26;&#x987A;&#x5E8F;&#x4E0D;&#x80FD;&#x6253;&#x4E71;s&#x4E2D;&#x5B57;&#x7B26;&#x51FA;&#x73B0;&#x7684;&#x76F8;&#x5BF9;&#x987A;&#x5E8F;</li>
<li>&#x5728;&#x6240;&#x6709;&#x7B26;&#x5408;&#x4E0A;&#x4E00;&#x6761;&#x8981;&#x6C42;&#x7684;&#x53BB;&#x91CD;&#x5B57;&#x7B26;&#x4E32;&#x4E2D;&#xFF0C;&#x5B57;&#x5178;&#x5E8F;&#x6700;&#x5C0F;&#x7684;&#x4F5C;&#x4E3A;&#x6700;&#x7EC8;&#x7ED3;&#x679C;</li>
</ol>
</blockquote>
<p><strong>&#x5B57;&#x5178;&#x5E8F;&#xFF1A;&#x6307;&#x4ECE;&#x524D;&#x5230;&#x540E;&#x6BD4;&#x8F83;&#x4E24;&#x4E2A;&#x5B57;&#x7B26;&#x4E32;&#x5927;&#x5C0F;&#x7684;&#x65B9;&#x6CD5;&#x3002;&#x9996;&#x5148;&#x6BD4;&#x8F83;&#x7B2C;1&#x4E2A;&#x5B57;&#x7B26;&#xFF0C;&#x5982;&#x679C;&#x4E0D;&#x540C;&#x5219;&#x7B2C;1&#x4E2A;&#x5B57;&#x7B26;&#x8F83;&#x5C0F;&#x7684;&#x5B57;&#x7B26;&#x4E32;&#x66F4;&#x5C0F;&#xFF0C;&#x4E00;&#x76F4;&#x8FD9;&#x6837;&#x5B50;&#x6BD4;&#x8F83;&#x4E0B;&#x53BB;&#x3002;</strong></p>
<pre class="language-"><code class="lang-cpp"><span class="token keyword">void</span> <span class="token function">rmDuplicate</span><span class="token punctuation">(</span><span class="token keyword">const</span> string <span class="token operator">&amp;</span> str<span class="token punctuation">)</span><span class="token punctuation">{</span>

    <span class="token comment">// &#x5B57;&#x7B26;&#x8BA1;&#x6570;</span>
    map<span class="token operator">&lt;</span><span class="token keyword">char</span><span class="token punctuation">,</span><span class="token keyword">int</span><span class="token operator">&gt;</span> count<span class="token punctuation">;</span>

    <span class="token comment">// &#x50A8;&#x5B58;&#x6700;&#x7EC8;&#x5E8F;&#x5217;&#xFF0C;&#x4EE5;&#x5F53;&#x524D;&#x5B57;&#x7B26;&#xFF0C;&#x5185;&#x90E8;&#x662F;&#x5355;&#x589E;&#x7684;</span>
    stack<span class="token operator">&lt;</span><span class="token keyword">char</span><span class="token operator">&gt;</span> s<span class="token punctuation">;</span>

    <span class="token comment">// &#x662F;&#x5426;&#x91CD;&#x590D;</span>
    map<span class="token operator">&lt;</span><span class="token keyword">char</span><span class="token punctuation">,</span><span class="token keyword">int</span><span class="token operator">&gt;</span> inStack<span class="token punctuation">;</span>

    <span class="token comment">// &#x8BA1;&#x6570;</span>
    pair<span class="token operator">&lt;</span>map<span class="token operator">&lt;</span><span class="token keyword">char</span><span class="token punctuation">,</span><span class="token keyword">int</span><span class="token operator">&gt;</span><span class="token double-colon punctuation">::</span>iterator<span class="token punctuation">,</span><span class="token keyword">bool</span><span class="token operator">&gt;</span> res<span class="token punctuation">;</span>
    <span class="token keyword">for</span><span class="token punctuation">(</span><span class="token keyword">char</span> ch<span class="token operator">:</span>str<span class="token punctuation">)</span><span class="token punctuation">{</span>
        res <span class="token operator">=</span> count<span class="token punctuation">.</span><span class="token function">insert</span><span class="token punctuation">(</span><span class="token generic-function"><span class="token function">pair</span><span class="token generic class-name"><span class="token operator">&lt;</span><span class="token keyword">char</span><span class="token punctuation">,</span><span class="token keyword">int</span><span class="token operator">&gt;</span></span></span><span class="token punctuation">(</span>ch<span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span>res<span class="token punctuation">.</span>second <span class="token operator">==</span> <span class="token boolean">false</span><span class="token punctuation">)</span>
        <span class="token punctuation">{</span>
            count<span class="token punctuation">[</span>ch<span class="token punctuation">]</span> <span class="token operator">+=</span> <span class="token number">1</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>

    <span class="token keyword">for</span><span class="token punctuation">(</span><span class="token keyword">char</span> ch<span class="token operator">:</span>str<span class="token punctuation">)</span><span class="token punctuation">{</span>
        <span class="token comment">// &#x53D6;&#x51FA;&#x4E00;&#x4E2A;</span>
        count<span class="token punctuation">[</span>ch<span class="token punctuation">]</span> <span class="token operator">--</span><span class="token punctuation">;</span>

        <span class="token comment">// &#x6808;&#x91CC;&#x9762;&#x6709;&#xFF0C;&#x53BB;&#x91CD;&#x590D;</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span>inStack<span class="token punctuation">.</span><span class="token function">count</span><span class="token punctuation">(</span>ch<span class="token punctuation">)</span> <span class="token operator">&amp;&amp;</span> inStack<span class="token punctuation">[</span>ch<span class="token punctuation">]</span> <span class="token operator">==</span> <span class="token boolean">true</span><span class="token punctuation">)</span>
        <span class="token punctuation">{</span>
            <span class="token keyword">continue</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>

        <span class="token comment">// &#x6700;&#x5C0F;&#x5B57;&#x5178;&#x5E8F;&#xFF1A;s&#x662F;&#x5355;&#x8C03;&#x589E;&#x52A0;&#x7684;</span>
        <span class="token keyword">while</span> <span class="token punctuation">(</span><span class="token operator">!</span>s<span class="token punctuation">.</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">&amp;&amp;</span> s<span class="token punctuation">.</span><span class="token function">top</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">&gt;</span> ch<span class="token punctuation">)</span>
        <span class="token punctuation">{</span>
            <span class="token comment">// &#x540E;&#x9762;&#x5DF2;&#x7ECF;&#x6CA1;&#x4E86;&#xFF0C;&#x4E0D;&#x80FD;&#x5728;&#x5F39;&#x51FA;</span>
           <span class="token keyword">if</span> <span class="token punctuation">(</span>count<span class="token punctuation">[</span>s<span class="token punctuation">.</span><span class="token function">top</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">]</span> <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span>
           <span class="token punctuation">{</span>
               <span class="token keyword">break</span><span class="token punctuation">;</span>
           <span class="token punctuation">}</span>

           inStack<span class="token punctuation">[</span>s<span class="token punctuation">.</span><span class="token function">top</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
           s<span class="token punctuation">.</span><span class="token function">pop</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>

        s<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>ch<span class="token punctuation">)</span><span class="token punctuation">;</span>
        inStack<span class="token punctuation">[</span>ch<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>

    string out <span class="token operator">=</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">;</span>
    <span class="token keyword">while</span> <span class="token punctuation">(</span><span class="token operator">!</span>s<span class="token punctuation">.</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
    <span class="token punctuation">{</span>
        out <span class="token operator">+=</span> s<span class="token punctuation">.</span><span class="token function">top</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        s<span class="token punctuation">.</span><span class="token function">pop</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
    <span class="token keyword">for</span><span class="token punctuation">(</span><span class="token keyword">int</span> i <span class="token operator">=</span> out<span class="token punctuation">.</span><span class="token function">length</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">;</span>i <span class="token operator">&gt;=</span><span class="token number">0</span><span class="token punctuation">;</span>i<span class="token operator">--</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
        cout <span class="token operator">&lt;&lt;</span> out<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
    cout <span class="token operator">&lt;&lt;</span> endl<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
</code></pre>
<ul>
<li><code>map<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>char,int</span><span class="token punctuation">&gt;</span></span> count</code>: &#x8BB0;&#x5F55;&#x5B58;&#x5728;&#x4E2A;&#x6570;</li>
<li><code>map<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>char,int</span><span class="token punctuation">&gt;</span></span> inStack</code>: <strong>&#x7528;&#x6765;&#x53BB;&#x91CD;&#x590D;</strong></li>
<li><code>stack<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>char</span><span class="token punctuation">&gt;</span></span> s</code>: <strong>&#x7528;&#x4E8E;&#x5B58;&#x653E;&#x7ED3;&#x679C;&#xFF0C;&#x5E76;&#x5229;&#x7528;&#x5355;&#x8C03;&#x6808;&#x7684;&#x7279;&#x6027;&#xFF0C;&#x5B9E;&#x73B0;&#x6700;&#x5C0F;&#x5B57;&#x5178;&#x5E8F;</strong></li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="backtracking_withNum.html" class="navigation navigation-prev " aria-label="Previous page: 十五、回溯算法">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="toollib_withNum.html" class="navigation navigation-next " aria-label="Next page: 附录 工具库">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"十六、单调栈","level":"2.1.16","depth":2,"next":{"title":"附录 工具库","level":"2.1.17","depth":2,"path":"cpp/chapter/toollib_withNum.md","ref":"cpp/chapter/toollib_withNum.md","articles":[]},"previous":{"title":"十五、回溯算法","level":"2.1.15","depth":2,"path":"cpp/chapter/backtracking_withNum.md","ref":"cpp/chapter/backtracking_withNum.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","search-pro-fixed","expandable-chapters-small","ancre-navigation","hide-element","code","splitter","insert-logo-link-website","-sharing","sharing-plus","prism","-highlight","flexible-alerts","lightbox","pageview-count","auto-scroll-table","katex-pro","favicon-absolute","sectionx","terminull-light","livereload"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-tomorrow.css"],"lang":{"flow":"typescript"}},"livereload":{},"splitter":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"auto-scroll-table":{},"code":{"copyButtons":true},"terminull-light":{},"search-pro-fixed":{},"favicon-absolute":{"favicon":"image/ico.png","appleTouchIconPrecomposed152":"image/ico.png","appleTouchIconMore":{},"appleTouchIconPrecomposedMore":{}},"hide-element":{"elements":[".gitbook-link"]},"katex-pro":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sectionx":{"tag":"b"},"lightbox":{"jquery":true,"sameUuid":false},"insert-logo-link-website":{"url":"image/logo.png","link":"https://space.bilibili.com/27206875","target":"_blank","style":"height: 230px"},"pageview-count":{},"ancre-navigation":{"showLevel":true,"associatedWithSummary":true,"mode":"float","printLog":false,"multipleH1":true,"float":{"showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""},"pageTop":{"showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""}},"expandable-chapters-small":{},"flexible-alerts":{"style":"callout","note":{"label":"Note","icon":"fa fa-info-circle","className":"info"},"tip":{"label":"Tip","icon":"fa fa-lightbulb-o","className":"tip"},"warning":{"label":"Warning","icon":"fa fa-exclamation-triangle","className":"warning"},"danger":{"label":"Attention","icon":"fa fa-ban","className":"danger"}},"sharing":{"qq":true,"all":["douban","facebook","google","instapaper","linkedin","twitter","weibo","messenger","qq","qzone","viber","whatsapp"],"douban":false,"facebook":false,"weibo":true,"whatsapp":false,"twitter":false,"pocket":false,"google":true,"qzone":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"海拉尔的三角","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"计算机笔记","links":{"sidebar":{"Github":"https://github.com/spite-triangle"}},"gitbook":"*"},"file":{"path":"cpp/chapter/monotoneStack_withNum.md","mtime":"2021-09-14T15:43:12.680Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-09-14T15:43:23.052Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro-fixed/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro-fixed/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-insert-logo-link-website/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-auto-scroll-table/plugin.js"></script>
        
    
        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sectionx/sectionx.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-terminull-light/terminull.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

